<!-- 导航条
================================================== -->

<!--star-wrap-->
<div class="wrap">
    <!--header-->
    <div class="header">
        <!--start-logo-->
        <div class="logo">
            <a href="{:U('index/index')}">
                <h1>871<span>ace</span></h1><span style="color: #e8603c;">871汽车文化生态圈（ACE）</span></a>
        </div>
        <!--end-logo-->


        <!--样式1-->
        <style type="text/css">
            /*
            #193B5F 栏目字体颜色
            */

            /*#nav menu2{float: right;z-index: 1;margin-top: 0px;}*/
            #navjs a { /*color:#f3af9d;*/
                padding: 15px 10px;
            }

            #navjs li { /*min-width:60px; max-width:120px;float:left;*/
                position: relative;
                z-index: 1;
            }

            /*#nav li .title{display:block;}*/
            /*#nav li .title:hover{background-color:#B9B9B9;;}*/
            /*#nav li .submenu{min-width:66px; max-width:130px;margin:0 auto;background:#f3af9d;position:absolute;left:0;top:40px;display:none;}*/
            /*#nav li .submenu a{color:#fff;line-height: 0.2em;}*/
            /*#nav li .submenu dd{border-top:1px dotted #ddd;color:#fff;}*/


        </style>
        <!--样式1 end-->

        <!--start-menu-->
        <div>
            <!--<a class="toggleMenu" href="#"><img src="__IMG__/871carimages/nav.png" alt=" " /></a>-->


            <!--样式1-->
            <!--注册登录-->
            <!--<div style="float: right;width: 20%;">-->
            <!--<span style="color: #e8603c;margin: 0 20px;">-->
            <!--<a href="#" style="color: #e8603c;">登录</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" style="color: #e8603c;">注册</a>-->
            <!--</span>-->
            <!--</div>-->
            <!--注册登录 end-->
            <!--<div class="clear"></div>-->
            <ul class="menu">
                <a class="toggleMenu" href="#"><img src="__IMG__/871carimages/nav.png" alt=" "/></a>
                <ul class="nav" id="navjs">


                    <?php $__NAV__ = M('Channel')->field(true)->where("status=1 and pid=0")->order("sort")->select();?>

                    <?php $__NAVchild__ = M('Channel')->field(true)->where("status=1 and
                    pid!=0")->order("sort")->select();?>
                    <?php
                     //存在子级的导航菜单id
                     $__NAVchildidlst__ = M('Channel')->distinct(true)->field('pid')->where("status=1 and
                    pid!=0")->order("sort")->select();?>

                    <?php
                    //不存在子级的导航菜单
                    foreach ($__NAVchildidlst__ as $key => $item)
                    {
                    $newstr = $newstr.$item['pid'].",";
                    }

                    $newstr=substr($newstr , 0 , strlen($newstr)-1);

                    $map['id'] = array('not in',$newstr);
                    $map['status'] = array('eq',1);
                    $map['pid'] = array('eq',0);
                    $map['title'] = array('neq','首页');

                    $__NAVchildidnotinlst__ = M('Channel')->field('id')->where($map)->order("sort")->select();
                    foreach ($__NAVchildidnotinlst__ as $key => $item)
                    {
                    $newstr2 = $newstr2.$item['id'].",";
                    }

                    $newstr2=substr($newstr2 , 0 , strlen($newstr2)-1);


                    ?>

                    <php>$current = CONTROLLER_NAME."/".ACTION_NAME;</php>
                    <!--<volist name="__NAV__" id="nav">-->

                        <!--&lt;!&ndash;记录是否有二级菜单&ndash;&gt;-->
                        <!--<?php $repeatvalue=0; ?>-->
                        <!--&lt;!&ndash;<eq name="nav.pid" value="0">&ndash;&gt;-->
                        <!--<eq name="current" value="$nav['url']">-->
                            <!--<if condition="$nav['title'] eq '首页' ">-->
                                <!--<li class="active">-->
                                    <!--<a href="{$nav.url|get_nav_url}"-->
                                       <!--target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">首页&nbsp;&nbsp;</a>-->
                                <!--</li>-->

                                <!--<else/>-->
                                <!--&lt;!&ndash;<li class="menulst">&ndash;&gt;-->
                                    <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                       <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                    <!--&lt;!&ndash;<dl class="submenu">&ndash;&gt;-->
                                        <!--&lt;!&ndash;<volist name="__NAVchild__" id="child">&ndash;&gt;-->
                                            <!--&lt;!&ndash;<if condition="$nav['id'] eq $child['pid']">&ndash;&gt;-->
                                                <!--&lt;!&ndash;&lt;!&ndash;<a href="{$child.url|get_nav_url}">111{$child.title}</a>&ndash;&gt;&ndash;&gt;-->

                                                <!--&lt;!&ndash;<dd><a href="{$child.url|get_nav_url}">{$child.title}</a></dd>&ndash;&gt;-->

                                            <!--&lt;!&ndash;</if>&ndash;&gt;-->
                                        <!--&lt;!&ndash;</volist>&ndash;&gt;-->
                                    <!--&lt;!&ndash;</dl>&ndash;&gt;-->
                               <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                <!--<!- &#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45; ->-->
                                <!--&lt;!&ndash;判断是否包含在二级id list中 &ndash;&gt;-->
                                <!--<volist name="__NAVchildidlst__" id="childid">-->

                                    <!--<if condition="$nav['id'] eq $childid['pid']">-->
                                        <!--<?php $repeatvalue+=1; ?>-->
                                        <!--<li class="menulst">-->
                                            <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                            <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                            <!--<a href="#" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>-->
                                            <!--<dl class="submenu">-->
                                                <!--<volist name="__NAVchild__" id="child">-->
                                                    <!--<if condition="$nav['id'] eq $child['pid']">-->
                                                        <!--&lt;!&ndash;<a href="{$child.url|get_nav_url}">111{$child.title}</a>&ndash;&gt;-->
                                                        <!--<dd><a href="{$child.url|get_nav_url}">{$child.title}</a></dd>-->

                                                    <!--</if>-->
                                                <!--</volist>-->
                                            <!--</dl>-->
                                        <!--</li>-->


                                    <!--</if>-->

                                <!--</volist>-->


                                <!--<if condition="$repeatvalue eq 0 ">-->
                                    <!--<li class="active">-->
                                        <!--<a href="{$nav.url|get_nav_url}"-->
                                           <!--target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>-->
                                    <!--</li>-->
                                <!--</if>-->


                           <!--</if>-->
                           <!--<else/>-->
                           <!--<if condition="$nav['title'] eq '首页' ">-->
                               <!--<li>-->
                                   <!--<a href="{$nav.url|get_nav_url}"-->
                                      <!--target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">首页&nbsp;&nbsp;</a>-->
                               <!--</li>-->
                               <!--<else/>-->
                               <!--&lt;!&ndash;<volist name="__NAVchild__" id="child">&ndash;&gt;-->
                                <!--&lt;!&ndash;<if condition="$nav['id'] eq $child['pid']">&ndash;&gt;-->
                                <!--&lt;!&ndash;<li class="menulst">&ndash;&gt;-->
                                <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                <!--&lt;!&ndash;<dl class="submenu">&ndash;&gt;-->
                                <!--&lt;!&ndash;&lt;!&ndash;<a href="{$child.url|get_nav_url}">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;{$child.title}</a>&ndash;&gt;&ndash;&gt;-->
                                <!--&lt;!&ndash;<dd><a href="{$child.url|get_nav_url}">{$child.title}</a></dd>&ndash;&gt;-->
                                <!--&lt;!&ndash;</dl>&ndash;&gt;-->
                                <!--&lt;!&ndash;</li>&ndash;&gt;-->

                                <!--&lt;!&ndash;<else/>&ndash;&gt;-->
                                <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                <!--&lt;!&ndash;</if>&ndash;&gt;-->
                                <!--&lt;!&ndash;</volist>&ndash;&gt;-->




                                <!--&lt;!&ndash;判断是否包含在二级id list中 &ndash;&gt;-->
                                <!--<volist name="__NAVchildidlst__" id="childid">-->

                                    <!--<if condition="$nav['id'] eq $childid['pid']">-->
                                        <!--<?php $repeatvalue+=1; ?>-->
                                        <!--<li class="menulst">-->
                                            <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                               <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                            <!--<a href="#" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>-->
                                            <!--<dl class="submenu">-->
                                                <!--<volist name="__NAVchild__" id="child">-->
                                                    <!--<if condition="$nav['id'] eq $child['pid']">-->
                                                        <!--&lt;!&ndash;<a href="{$child.url|get_nav_url}">111{$child.title}</a>&ndash;&gt;-->
                                                        <!--<dd><a href="{$child.url|get_nav_url}">{$child.title}</a></dd>-->

                                                    <!--</if>-->
                                                <!--</volist>-->
                                            <!--</dl>-->
                                        <!--</li>-->


                                    <!--</if>-->

                                <!--</volist>-->


                                <!--<if condition="$repeatvalue eq 0 ">-->
                                    <!--<li>-->
                                        <!--<a href="{$nav.url|get_nav_url}"-->
                                           <!--target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>-->
                                    <!--</li>-->
                                <!--</if>-->


                                <!--&lt;!&ndash; -&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45; &ndash;&gt;-->
                                <!--&lt;!&ndash;<li class="menulst">&ndash;&gt;-->
                                <!--&lt;!&ndash;<a href="{$nav.url|get_nav_url}"&ndash;&gt;-->
                                <!--&lt;!&ndash;target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}&nbsp;&nbsp;</a>&ndash;&gt;-->
                                <!--&lt;!&ndash;<dl class="submenu">&ndash;&gt;-->
                                <!--&lt;!&ndash;<volist name="__NAVchild__" id="child">&ndash;&gt;-->
                                <!--&lt;!&ndash;<if condition="$nav['id'] eq $child['pid']">&ndash;&gt;-->
                                <!--&lt;!&ndash;&lt;!&ndash;<a href="{$child.url|get_nav_url}">111{$child.title}</a>&ndash;&gt;&ndash;&gt;-->

                                <!--&lt;!&ndash;<dd><a href="{$child.url|get_nav_url}">{$child.title}</a></dd>&ndash;&gt;-->

                                <!--&lt;!&ndash;</if>&ndash;&gt;-->
                                <!--&lt;!&ndash;</volist>&ndash;&gt;-->
                                <!--&lt;!&ndash;</dl>&ndash;&gt;-->
                                <!--&lt;!&ndash;</li>&ndash;&gt;-->

                            <!--</if>-->
                        <!--</eq>-->
                        <!--</eq>-->
                    <!--</volist>-->



                <!--静态绑定数据
                ------------------------------------------------------------------------->
                <li class="active"><a href="{:U('index/index')}">首页&nbsp;&nbsp;</a></li>
                <li class="menulst">
                    <a href="#">资讯&nbsp;&nbsp;</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/Article/lists/category/news.html">新闻</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Article/lists/category/activity.html">活动</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Article/lists/category/discover.html">发现</a></dd>
                    </dl>
                </li>

                <li>
                    <a href="/web871car/index.php?s=/Home/Index/index.html" >合作品牌</a>
                </li>

                <li class="menulst">
                    <a href="#" >汽车城市</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/AutoCulture/index.html">城市展厅</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/AutoCulture/index.html">后市场</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/AutoCulture/index.html">汽车金融</a></dd>
                    </dl>
                </li>

                <li class="menulst">
                    <a href="#" >&nbsp;&nbsp;彩云南&nbsp;&nbsp;</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/YNSpecial/index.html">旅游</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/YNSpecial/index.html">艺术文化</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/YNSpecial/index.html">民俗文化</a></dd>
                    </dl>
                </li>
                <li>
                    <a href="/web871car/index.php?s=/Home/Index/index.html">招商啦</a>
                 </li>

                <li class="menulst">
                    <a href="#" >互动空间</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/Index/index.html">小伙伴们</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Index/index.html">论坛</a></dd>
                    </dl>
                </li>
                <!--<li>-->
                    <!--<a href="/web871car/index.php?s=/Home/Index/index.html" >诚信榜</a>-->
                <!--</li>-->
                <li class="menulst">
                    <a href="#" >&nbsp;&nbsp;&nbsp;会展&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/Index/index.html">场馆信息</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Index/index.html">活动信息</a></dd>

                    </dl>
                 </li>
                 <li class="menulst">
                    <a href="#" >关于871ACE</a>
                    <dl class="submenu">
                    <dd><a href="/web871car/index.php?s=/Home/Article/detail/id/7.html">871ACE介绍</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Article/detail/id/7.html">联系方式</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Article/detail/id/7.html">人才战略</a></dd>
                    <dd><a href="/web871car/index.php?s=/Home/Article/detail/id/7.html">招聘岗位</a></dd>
                    </dl>
                 </li>
                    <li class="menulst">
                        <a href="#" >注册登录</a>
                        <dl class="submenu">
                            <dd><a href="#">&nbsp;&nbsp;注册&nbsp;&nbsp;</a></dd>
                            <dd><a href="#">&nbsp;&nbsp;登录&nbsp;&nbsp;</a></dd>
                            </dl>
                    </li>

                <!--<li class="menulst">-->
                <!--<a href="#">商圈导航</a>-->

                <!--<dl class="submenu">-->
                <!--<dd><a href="{:U('index/index')}">求购信息</a></dd>-->
                <!--<dd><a href="{:U('index/index')}">转让信息</a></dd>-->
                <!--</dl>-->

                <!--</li>-->
                <!--<li><a href="{:U('index/index')}">云南味道</a></li>-->
                <!--<li><a href="{:U('index/index')}">汽车文化</a></li>-->
                <!--<li><a href="{:U('index/index')}">园区招商</a></li>-->
                <!--<li><a href="{:U('index/index')}">关于我们</a></li>-->

                <!--静态绑定数据 end
               ------------------------------------------------------------------------->



                </ul>


                <script type="text/javascript">

                    var nav = document.getElementById("navjs").childNodes;
                    for (var i = 0; i < nav.length; i++) {

                        if (nav[i].className == "menulst") {
                            nav[i].onmouseover = function () {
                                fnNav(this, "block")
                            };
                            nav[i].onmouseout = function () {
                                fnNav(this, "none")
                            };
                        }
                    }
                    function fnNav(obj, flag) {
                        obj.getElementsByTagName("dl")[0].style.display = flag;
                    }

                </script>
                <script type="text/javascript" src="__JS__/871carjs/responsive-nav.js"></script>
                <!--样式1 end-->


                <div class="clear"></div>
            </ul>

        </div>
        <div class="clear"></div>
        <!--end-menu-->

    </div>
</div>
<!--end-header-->
<!--end wrap-->


<!--old-->

<!--old-->